package com.yc.damai.web.feign;

import com.yc.damai.entity.DmProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "damai-other", fallback = OtherActionImpl.class)
@Component
public interface OtherAction {

    @RequestMapping("product/queryNewAndHot")
    Map<String, List<DmProduct>> queryNewAndHot();
}
